package com.leyou.auth.service;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public interface UserAuthService {
    /**
     * 用户登录
     * @param username 用户名
     * @param password 密码
     * @param response 返回客户端数据
     * @return  void
     */
    void login(String username, String password, HttpServletResponse response);
    /**
     * 退出登录
     * @param request 请求参数
     * @param response 响应数据，写cookie用
     * @return 无
     */
    void logout(HttpServletRequest request, HttpServletResponse response);
}
